<template>
    <header class="header">
        <div class="wrap">
            <h1 class="logo">
                <a href="/#">网易云音乐</a>
            </h1>
            <ul class="nav">
                <li>
                    <span>
                        <a href="/#" class="slt">
                            <em>发现音乐</em>
                            <sub class="cor">&nbsp;</sub>
                        </a>
                    </span>
                </li>
                <li><span><a href="/#/toplist"><em>排行榜</em></a><sub>&nbsp;</sub></span></li>
                <li><span><a href="/#/playlist"><em>歌单</em></a><sub>&nbsp;</sub></span></li>
                <li><span><a href="/#/djradio"><em>主播电台</em></a><sub>&nbsp;</sub></span></li>
                <li><span><a href="/#/artist"><em>歌手</em></a><sub>&nbsp;</sub></span></li>
                <li><span><a href="/#/album"><em>新碟上架</em><sub class="hot"></sub></a></span></li>
            </ul>
            <div class='login'>
                <img src="http://p4.music.126.net/RLeBJe4D1ZzUtltxfoKDMg==/109951163250239066.jpg?param=30y30">
                <a href="/user/home?id=1513980584" class="mask"></a>
                <i class="m-topmsg f-pa f-hide j-uflag"></i>
            </div>
             <a data-action="bilog" data-log-action="click" data-log-json="{&quot;target&quot;:&quot;uploadvideo&quot;,&quot;page&quot;:&quot;homepage&quot;}" href="/login?targetUrl=%2Fst/creator" target="_blank" class="m-topvd f-pr m-creator-center">创作者中心</a>
            <div class="search">
                <span class="srchbg"></span>
                <input type="text" name="srch" id="srch" class="txt j-flag" value="" >
                <label class="srchTip" id="" style="">音乐/视频/电台/用户</label>
            </div>
           
        </div>
    </header>
</template>
<script>
    export default {
        name: "mHeader"
    };
</script> 
<style scope="true" lang="scss">

    $topbar-bg: url(../../../assets/images/topbar.png) no-repeat 0 top;
    input{ outline:none; border:0; }
    .header {
        height: 70px;
        box-sizing: border-box;
        background: #242424;
        border-bottom: 2px solid #c00014;
        box-sizing: content-box;

        .wrap {
            width: 1100px;
            margin: 0 auto;
        }

        .logo {
            float: left;
            width: 176px;
            height: 69px;
            background-position: 0 0;
            background: $topbar-bg;
        
             a {
                float: left;
                width: 157px;
                height: 100%;
                padding-right: 20px;
                text-indent: -9999px;
            }

        }

    }
  
    .nav {
        float: left;
        
        li {
            float: left;
            height: 70px;
            font-size: 14px;
            position: relative;
            background-position: right -300px;

            span {
                background: none;
                float: left;
                height: 70px;
                font-size: 14px;
            }

            a {
                padding: 0 19px;
                text-align: center;
                line-height: 70px;
                height: 70px;
                color: #ccc;
                float: left;

                em {
                    float: left;
                    height: 70px;
                    font-size: 14px;
                }

                &:hover, &.slt {
                    background: #000;
                    color: #fff;
                }
            }

            .cor {
                background: $topbar-bg;
                display: block;
                position: absolute;
                left: 50%;
                top: 64px;
                width: 12px;
                height: 7px;
                margin-left: -6px;
                overflow: hidden;
                background-position: -226px 0;
            }

            .hot {
                background: $topbar-bg;
                display: block;
                position: absolute;
                top: 21px;
                left: 100px;
                width: 28px;
                height: 19px;
                background-position: -190px 0;
            }
        }
    
    }

    .search{
            position: relative;
            width: 158px;
            height: 32px;
            line-height: 32px;
            float: right;
            margin-top: 19px;
            background: white;
            border-radius:32px;
            .srchbg{
                    background:$topbar-bg;
                    margin-top: 6px;
                    margin-left: 4px;
                    background-position: -5px -102px;
                    background-color: #fff;
                    border-radius: 32px;
                    width: 24px;
                    position: absolute;
                    height: 20px;
            }
            input{
                position: absolute;
                left:30px;
                top:2px;
                border-radius: 32px;
                border: none;
                width:70%;
                height: 83%;
                z-index: 2;
                background: transparent;
            }
            .srchTip{
                position: absolute;
                left: 36px;
                top: 1px;
                color: #9b9b9b;
            }
    }
    .m-topvd{
            float: right;
            width: 90px;
            height: 32px;
            border: 1px solid #4F4F4F;
            line-height: 33px;
            color: #ccc;
            border-radius: 20px;
            text-align: center;
            margin: 19px 0 0 12px;
    }
    .login{
        float: right;
        height: 45px;
        margin: 19px 0 0 20px;
        padding: 0 22px 0 0;
        background-position: right -47px;
        img{
                border-radius: 30px;
        }
        .m-topmsg{
            top: -5px;
            left: 20px;
            display: inline-block;
            min-width: 17px;
            height: 17px;
            padding: 0 4px;
            box-sizing: border-box;
            background: #C20C0C;
            border-radius: 18px;
            border: 1px solid #242424;
            line-height: 16px;
            font-size: 12px;
            white-space: nowrap;
            color: #fff;
            text-align: center;
        }
    }
</style>

